home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4215 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  841 b 

  1. Path: inforamp.net!ts44-07
  2. From: rmorin@inforamp.net (Randy Charles Morin)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: How to tell if a file exists in C
  5. Date: Fri, 02 Feb 96 18:15:40 GMT
  6. Organization: MiddleWorld SoftWare
  7. Message-ID: <4etk2e$7s1@sam.inforamp.net>
  8. References: <4eqkj6$ipo@charm.magnus.acs.ohio-state.edu>
  9. NNTP-Posting-Host: ts44-07.tor.inforamp.net
  10. X-Newsreader: News Xpress Version 1.0 Beta #4
  11.  
  12. In article <4eqkj6$ipo@charm.magnus.acs.ohio-state.edu>,
  13.    xiaoyi@bmecg.bme.ohio-state.edu (Xiaoyi Wu) wrote:
  14. >Hi, how do I find out if a file already exists
  15. >in UNIX C? On PCs I would do a findfirst/findnext,
  16. >is there an equivalent on Unix?
  17. >
  18. >Answer CCed to my email appreciated. Thanks.
  19. >
  20. >Xiaoyi
  21.  
  22. I'm assuming that UNIX C has the standard function 
  23.     access(...)
  24. this function has a variation where it test for existence.
  25.  
  26. Agrivar
  27.